import request from '@/utils/request'

// 查询物料配置列表
export function listMaterialconfig(query) {
  return request({
    url: '/settlementCenter/basedata/materialconfig/list',
    method: 'get',
    params: query
  })
}

// 查询物料配置详细
export function getMaterialconfig(id) {
  return request({
    url: '/settlementCenter/basedata/materialconfig/' + id,
    method: 'get'
  })
}

// 新增物料配置
export function addMaterialconfig(data) {
  return request({
    url: '/settlementCenter/basedata/materialconfig',
    method: 'post',
    data: data
  })
}

// 修改物料配置
export function updateMaterialconfig(data) {
  return request({
    url: '/settlementCenter/basedata/materialconfig',
    method: 'put',
    data: data
  })
}

// 删除物料配置
export function delMaterialconfig(id) {
  return request({
    url: '/settlementCenter/basedata/materialconfig/' + id,
    method: 'delete'
  })
}
